package com.uzhie.web.controller.websocket;

import org.springframework.context.ApplicationContext;
import org.springframework.web.servlet.DispatcherServlet;
import org.springframework.web.servlet.HandlerExecutionChain;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Created by TangFei on 2018/7/18.
 */
public class SocketDispatcherServlet extends DispatcherServlet {

    @Override
    protected void onRefresh(ApplicationContext context) {
        super.onRefresh(context);
    }

    @Override
    protected void doService(HttpServletRequest request, HttpServletResponse response) throws Exception {
        logger.info("enter SocketDispatcherServlet doService");
        super.doService(request, response);
    }

    @Override
    protected void doDispatch(HttpServletRequest request, HttpServletResponse response) throws Exception {
        logger.info("enter SocketDispatcherServlet doDispatch");
        super.doDispatch(request, response);
    }

    @Override
    protected HandlerExecutionChain getHandler(HttpServletRequest request) throws Exception {
        logger.info("enter SocketDispatcherServlet getHandler");
        return super.getHandler(request);
    }

}
